//
//  LDSBaseView.h
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/9/30.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol LDSBaseViewDelegate <NSObject>
@optional
- (BOOL)view:(UIView *)view index:(NSUInteger)index model:(id)model;
@end

@interface LDSBaseView : UIView
@property(nonatomic, strong)id model;
@property(nonatomic, weak)id<LDSBaseViewDelegate>       delegate;
- (void)controlEvent:(UIControl *)sender;
- (void)toCallBackWithTaget:(id)taget index:(NSInteger)index model:(id)model;

- (void)viewSetup;
- (void)frameSetup;
@end
